import random

countries = [
    "美国",
    "加拿大",
    "巴西",
    "英国",
    "德国",
    "法国",
    "意大利",
    "西班牙",
    "俄罗斯",
    "中国",
    "印度",
    "日本",
    "澳大利亚",
    "南非",
    "墨西哥",
    "阿根廷",
    "韩国",
    "沙特阿拉伯",
    "土耳其",
    "荷兰"
]
total_random = [2, 3]
total_countries = []
total_country_query = 20
for i in range(total_country_query):
    total_countries.append(random.sample(countries, random.choice(total_random)))


# 用户名
ELASTIC_USERNAME = "elastic"
# 用户密码
ELASTIC_PASSWORD = "iie123$%^"
# 集群地址
ELASTIC_ADDRESS = ["http://10.26.32.92:9222"]
INDEX_NAME="test_news"

total_random_date_count = 1000
read_batch = 1000